Typically, a token is a physical device that is used, with or in place of a password, to authenticate a user’s identity.

Many tokens and smart cards are used to create a dynamic or one-time password—a password that is only valid for a single login and therefore is not subject to a replay attack.

The creation of a one-time password may be based on timing, where the password changes every minute or two; or the passwords may be based on events, where the password changes every time the user pushes a button on the device or uncovers a hidden value (scratch card).

These require that the host system has a highly reliable way to be initialized to the same value used by the token’s software or onboard firmware and will generate each new password or key value in lockstep with the token. Both tokens come in many varieties and can be used to prove an identity electronically. An example is a bank ATM card, which the customer uses to access the bank account associated with the card. The token is used in place of a password to verify the customer’s identity, or in addition to the password, as in the case of a PIN that the customer must enter each time the card is used.

The figure illustrates tokenization, substituting sensitive data with a nonsensitive equivalent.

Figure: Tokenization

The token acts like an electronic key. All tokens contain some secret information that is used to prove identity.

Ownership-based systems have the weakness that the loss or failure of the device may result in denial of service for the user, or a stolen device could be used by an unauthorized person to log into the organization.

Asynchronous Tokens

An asynchronous token, such as the event-driven, asynchronous token from Secure Computing called the SafeWord, is an eToken PASS that provides a new one-time password with each use of the token. It can be configured to expire on a specific date.

In the use of an asynchronous one-time password token, the access control subject typically executes a five-step process to authenticate identity and have access granted:

  1. The authentication server presents a challenge request to the access control subject.

  2. The access control subject enters the challenge into the token device.

  3. The token device mathematically calculates a correct response to the authentication server challenge.

  4. The access control subject enters the response to the challenge along with a password or PIN.

  5. The response and password (or PIN)are verified by the authentication server, and if they are correct, access is granted.

The use of a PIN together with the value provided from the token helps mitigate the risk of a stolen or lost token being used by an unauthorized person to gain access.

Time-Based

Time-based authentication systems that use synchronous tokens employ time-based, one-time passwords (TOTPs) to allow an additional authentication factor to be generated during the overall login authentication process by software on a user’s endpoint device. A variety of implementations are possible for this, such as having the user endpoint scan a quick-response code (QRC) displayed by the host and using that QRC as an input to a TOTP generator.

In 2011, the Internet Engineering Task Force issued Request for Comment (RFC) 6238 with a standard definition of a TOTP, which uses the hash functions associated with hash message authentication codes (HMACs). These systems rely on both the host and endpoint to synchronize their internal clocks within a small interval, such as 30 seconds, from which both the authenticator and the authenticate, as the host and endpoint are known, compute the TOTP. If an attacker has copied a large enough authentication database, they may be able to calculate new, valid TOTP values whenever they want to, so there are some vulnerabilities associated with this approach. But if that time interval is short enough, it forces the attacker to spoof credentials and phish out the TOTP values, so this risk is manageable. As a result, TOTPs are not valid for more than 30 seconds.

Event-Based

Event-based authentication uses a physical event, such as the push of a button on a security token device, to generate the sequence number that is the seed value needed for the one-time password generator algorithm. This requires the host to be initialized to the same starting sequence number as the token is initialized and to keep track of each token’s current, or last-used, sequence number value. That starting value should be kept secret, as should the current value in the token device and in the host’s records, in the authentication database. A financial institution that might issue tens of thousands of token devices to their customers would need to store the token device identifiers (MAC addresses or similar), their initialization value, and their current value with each customer’s account associated with that token.

Connected Tokens

Connected tokens are connected physically to the computer that authenticates the user. With these types of tokens, the time synchronization occurs when the token is inserted into an input device. The token automatically transmits the authentication information when a connection is made. These types of devices do require an input device to be installed, either built-in (e.g., the keyboard) or plugged in via a USB port or FireWire (IEEE 1394).

Disconnected Tokens

Disconnected tokens require no connection, either logical or physical. When using time-synchronization, the synchronization is done before the token is distributed to the client. These devices display a value (the password), which is entered via the login.

Contactless Tokens

Contactless tokens have connectivity to transmit login credentials or payment information using an in-built antenna radio-frequency identification(RFID) and near-field communication devices. While this may be more convenient for the user than the devices previously mentioned, they do present the additional problem of snooping or cloning.